﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chess
{
    public class Queen:InterfacePiece
    {
        Piece piece = null;
        
        public Queen(Piece Queen)
		{
			piece = Queen;
		}       
        
        public int ImageIndex
        {
            get {return (this.piece.Player.isColor == Player.Color.WHITE ? 8 : 9); }
        }     
     
        public void SetPosition(Moves moves)
        {
            Board.PieceLine(moves,piece, piece.Player,17);
            Board.PieceLine(moves, piece, piece.Player,-17);
            Board.PieceLine(moves, piece, piece.Player, 16);
            Board.PieceLine(moves, piece, piece.Player,-16);
            Board.PieceLine(moves,piece, piece.Player,15);            
            Board.PieceLine(moves,piece, piece.Player,-15);            
            Board.PieceLine(moves,piece, piece.Player,1);
            Board.PieceLine(moves,piece, piece.Player,-1);
        }
    }
}
